package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.OrderRefund;
import com.ruoyi.system.domain.vo.RefundDetailVo;
import com.ruoyi.system.domain.vo.RefundQueryVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface OrderRefundMapper extends BaseMapper<OrderRefund> {


    List<RefundDetailVo> queryList(RefundQueryVo vo);

    @Update("update app_order_refund set status=#{status} where status=1 and id=#{id}")
    void updateStatus(@Param("id") Long id,@Param("status")Integer status);
}
